import { BigScreen } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 大屏数据接口
 */

// 获取Rpa饼图数据
export const getAuthRpaListApi = () => {
  return http.get(PORT1 + `/BigScreenV2/rightBottom`, {}, { loading: false });
};

// 获取网络运行情况数据
export const getAuthTopApi = () => {
  return http.get<BigScreen.Top>(PORT1 + `/BigScreenV2/leftTop`, {}, { loading: false });
};

// 获取指标情况轮播数据
export const getAuthTargetListApi = () => {
  return http.get<BigScreen.TargetData>(PORT1 + `/BigScreenV2/leftBottom`, {}, { loading: false });
};

// 获取网络运行情况轮播数据
export const getAuthScoreListApi = () => {
  return http.get(PORT1 + `/BigScreenV2/centerBottom`, {}, { loading: false });
};

// 获取网络运行情况轮播数据
export const getAuthInvertedListApi = () => {
  return http.get(PORT1 + `/BigScreenV2/rightTop`, {}, { loading: false });
};

// 获取网络运行情况轮播数据
export const getAuthRateListApi = () => {
  return http.get(PORT1 + `/BigScreenV2/rightCenter`, {}, { loading: false });
};

// 获取竞赛指标头部数据
export const getTargetTopDataApi = () => {
  return http.get(PORT1 + `/BigScreenV2/TargetTopData`, {}, { loading: false });
};

// 获取竞赛指标头部数据
export const getTargetSelectDataApi = (params: any) => {
  return http.post(PORT1 + `/BigScreenV2/TargetSelectData`, params);
};

// 获取竞赛指标主页数据
export const getTargetMainDataApi = (params: any) => {
  return http.post(PORT1 + `/BigScreenV2/TargetMainData`, params);
};

// 获取区县页柱状图数据
export const getCountyTopDataApi = (params: any) => {
  return http.post(PORT1 + `/BigScreenV2/CountyTopData`, params);
};

// 获取区县页表格数据
export const getCountyBottomDataApi = (params: any) => {
  return http.post(PORT1 + `/BigScreenV2/CountyBottomData`, params);
};
